package com.xiaobai.model.vo.system.menu;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xiaobai.common.utils.config.Tree.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class MenuTreeVO implements TreeNode<Long, MenuTreeVO> {

    private List<MenuTreeVO> nodes;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "父节点ID")
    private Long parentId;

    @Schema(description = "菜单名字")
    private String menuName;

    @Schema(description = "路由地址")
    private String routerPath;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "类型 0菜单  1按钮  2接口")
    private Integer type;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "是否选中")
    private Boolean isAuthority;

}
